|
This page last changed on May 17, 2010 by mccann.
These steps document the process on setting up the DRDS on a server and then connecting that server (as read-only) to the BOG database.
- Download dods.war from here: http://opendap.org/pub/dods/DODS-Java-1.1/1.1.7/dods.war
- Install apache tomcat (tested with 6.0.18)
- Drop the dods.war in the $TOMCAT_HOME/webapps directory and start tomcat.
- This will create a dods directory in the webapps directory.
- Shutdown tomcat
- Download the JTDS driver from: http://jtds.sourceforge.net/ and install the jar file in $TOMCAT_HOME/lib
- Edit the $TOMCAT_HOME/webapps/dods/WEB-INF/web.xml file.
- Configure the DRDS servlet to connect to the BOG Datbase. The web.xml should look something like:
- Now you need to specify the DDS, DAS, and the HTML template for accessing the data in the BOG database.
- Create a directory named 'bog' under the $TOMCAT_HOME/webapps/dods/datasets directory.
- Create three directories under the 'bog' directory
- das
- dds
- info
- In the 'das' directory create a DAS file that matches the name of the table you want to connect to. For this example, I connected to the BCTD table so I created a file called 'BCTD'.
- In the dds directory, create a DDS file that is also named after the table you will connect to. For this example, the file name is BCTD again and looks like (unlike the DAS file, this file should have no extension, i.e. it should be named just 'BCTD'):
- If you create a file named BCTD.html and put it in the info directory, it will provide some HTML for the user that will give them more information about the BOG dataset. For example:
- In the info directory create a file named dods.servers.sql.drds.html with the HTML show below. This HTML will show up in an information page that users will see when they browse to the DRDS service for your BOG dataset.
- Now start up Tomcat and browse to http://localhost:8080/dods/bog and you will see your table with some links that you can explore.
Pros
- Nice way to make a RDB look like a DODS server.
Cons
- Not active (most recent release is 2004)
- Will not compile against Java 1.5(note says that although I did not verify)
- Not sure if I can make the backing RDB into a Grid dataset instead of just a Sequence.
Installed on elvis using above instructions on 18 May 2009
Example query for bottles with depths > 2000:
http://dods.shore.mbari.org:8080/dods/bog/BCTD.ascii?&BCTD.DEPTH%3E2000
|